<template>
	<view><view class="back-to-index" @click="backToIndex" v-if="shareType=='1'">返回首页</view></view>
</template>

<script>
export default {
	data() {
		return {};
	},
	props:["shareType"],
	methods: {
		backToIndex(){
			this.$routeUtils.reLaunch({
				url: '/pages/index/index'
			})		
		}
	}
};
</script>

<style lang="scss">
.back-to-index {
	width: 190rpx;
	height: 80rpx;
	line-height:80rpx;
	border-radius: 88rpx 0 0 88rpx;
	position: fixed;
	right: 0;
	bottom: 480rpx;
	z-index: 99;
	background: #ff004f;
	color: #fff;
	text-align: center;
	margin-bottom: env(safe-area-inset-bottom);
}
</style>
